package data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;

import model.CardInterface;

public class Session implements SessionInterface, Serializable
{
	private int turnSeatIndex;
	
	private ArrayList<CardInterface> boardCards;
	
	private HashMap<Integer, SeatInterface> seats = new HashMap<Integer, SeatInterface>();
	
	public void setTurnSeatIndex(int turnSeatIndex)
	{
		this.turnSeatIndex = turnSeatIndex;
	}
	
	public int getTurnSeatIndex()
	{
		return turnSeatIndex;
	}
	
	public void setBoardCards(ArrayList<CardInterface> boardCards)
	{
		this.boardCards = boardCards;
	}
	
	public ArrayList<CardInterface> getBoardCards()
	{
		return boardCards;
	}
	
	public void updateSeat(SeatInterface seat)
	{
		seats.put(seat.getIndex(), seat);
	}
	
	public SeatInterface getSeat(int index)
	{
		return seats.get(index);
	}
}
